//
//  UserProfile.h
//  playSerengetiMobile1
//
//  Created by Lita Gratrix on 12/1/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//


#import <UIKit/UIKit.h>
#import "User.h"
#import "Team.h"
#import "Location.h"
#import "playSerengetiMobile1AppDelegate.h"


@interface UserProfile : UIViewController <UITableViewDataSource, UITableViewDelegate> {
	NSInteger userId;
	
	UILabel *displayNameLabel;
	UILabel *emailLabel;
	UITableView *userProfileTableView;
	
	NSMutableData *responseData;
	
	User *profile;
	NSMutableArray *friends;
	NSMutableArray *teams;
	
	NSMutableArray *tableSourceArray;
	
	playSerengetiMobile1AppDelegate *appDelegate;
}

@property (nonatomic, readwrite) NSInteger userId;

@property (nonatomic, retain) IBOutlet UILabel *displayNameLabel;
@property (nonatomic, retain) IBOutlet UILabel *emailLabel;
@property (nonatomic, retain) IBOutlet UITableView *userProfileTableView;

@property (nonatomic, retain) User *profile;
@property (nonatomic, retain) NSMutableArray *friends;
@property (nonatomic, retain) NSMutableArray *teams;

@property (nonatomic, retain) NSMutableArray *tableSourceArray;

@property (nonatomic, retain) playSerengetiMobile1AppDelegate *appDelegate;

- (void)populateViewData:(NSDictionary *)parsedData;
- (void)populateUser:(NSDictionary *)userDictionary;
- (void)populateFriends:(NSMutableArray *)friendArray;
- (void)populateTeams:(NSMutableArray *)teamArray;

@end
